<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTMutableNumericData Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_mutable_numeric_data.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">CPTMutableNumericData Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTMutableNumericData" --><!-- doxytag: inherits="CPTNumericData" -->
<p>An annotated <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSMutableData_Class/index.html">NSMutableData</a> type.  
 <a href="interface_c_p_t_mutable_numeric_data.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTMutableNumericData:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_mutable_numeric_data__inherit__graph.png" border="0" usemap="#_c_p_t_mutable_numeric_data_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_mutable_numeric_data_inherit__map" id="_c_p_t_mutable_numeric_data_inherit__map">
<area shape="rect" id="node2" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type." alt="" coords="216,166,345,197"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node6" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="128,86,256,117"/><area shape="rect" id="node10" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="280,86,460,117"/><area shape="rect" id="node12" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="484,86,605,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTMutableNumericData:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_mutable_numeric_data__coll__graph.png" border="0" usemap="#_c_p_t_mutable_numeric_data_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_mutable_numeric_data_coll__map" id="_c_p_t_mutable_numeric_data_coll__map">
<area shape="rect" id="node2" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type." alt="" coords="216,166,345,197"/><area shape="rect" id="node4" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node6" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node8" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCopying_Protocol/Reference/Reference.html" title="\&lt;NSCopying&#45;p\&gt;" alt="" coords="128,86,256,117"/><area shape="rect" id="node10" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSMutableCopying_Protocol/Reference/Reference.html" title="\&lt;NSMutableCopying&#45;p\&gt;" alt="" coords="280,86,460,117"/><area shape="rect" id="node12" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="484,86,605,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_mutable_numeric_data-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Public Class Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_mutable_numeric_data.html">CPTMutableNumericData</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_mutable_numeric_data.html#a11628187374953b7bb2f0f905ebf28bc">numericDataWithData:dataType:shape:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance.  <a href="#a11628187374953b7bb2f0f905ebf28bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_p_t_mutable_numeric_data.html">CPTMutableNumericData</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_p_t_mutable_numeric_data.html#a37ac676d6a348f8e7c12b651de1cc009">numericDataWithData:dataTypeString:shape:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates and returns a new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance.  <a href="#a37ac676d6a348f8e7c12b651de1cc009"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Initialization</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_numeric_data.html#af096619a65ba30e18f89d9756bfc13a7">initWithData:dataType:shape:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> object with the provided data. This is the designated initializer.  <a href="#af096619a65ba30e18f89d9756bfc13a7"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Type Conversion</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_mutable_numeric_data.html#a9a4aacdf750422717667c63ee84e2e1a">convertToType:sampleBytes:byteOrder:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the current numeric data to a new data type.  <a href="#a9a4aacdf750422717667c63ee84e2e1a"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Data Buffer</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38e4170708bf3f13e8a485e65da6afb7"></a><!-- doxytag: member="CPTMutableNumericData::mutableBytes" ref="a38e4170708bf3f13e8a485e65da6afb7" args="" -->
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#a38e4170708bf3f13e8a485e65da6afb7">mutableBytes</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the data buffer’s contents. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Dimensions</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html">NSArray</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#a0aeeb102b44e2cf316767b4f0a43cb44">shape</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The shape of the data buffer array. Set a new shape to change the size of the data buffer.  <a href="#a0aeeb102b44e2cf316767b4f0a43cb44"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Data Format</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88cbe822cba4e66d1d46c27a7f47defc"></a><!-- doxytag: member="CPTMutableNumericData::dataType" ref="a88cbe822cba4e66d1d46c27a7f47defc" args="" -->
<a class="el" href="_c_p_t_numeric_data_type_8h.html#a0b911106a65975081b0063bf419b294b">CPTNumericDataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#a88cbe822cba4e66d1d46c27a7f47defc">dataType</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of data stored in the data buffer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2d079c12eb0faccdf055508e41888d0"></a><!-- doxytag: member="CPTMutableNumericData::dataTypeFormat" ref="ad2d079c12eb0faccdf055508e41888d0" args="" -->
<a class="el" href="_c_p_t_numeric_data_type_8h.html#ab9eb8548b99ca6ad5e1b4646f51f6746">CPTDataTypeFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#ad2d079c12eb0faccdf055508e41888d0">dataTypeFormat</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The format of the data stored in the data buffer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13c887d1f90790cfb5cee1571d1d933b"></a><!-- doxytag: member="CPTMutableNumericData::sampleBytes" ref="a13c887d1f90790cfb5cee1571d1d933b" args="" -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#a13c887d1f90790cfb5cee1571d1d933b">sampleBytes</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of bytes in a single sample of data. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba816791a6cd320251b7a54f1c504f32"></a><!-- doxytag: member="CPTMutableNumericData::byteOrder" ref="aba816791a6cd320251b7a54f1c504f32" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/corefoundation/Reference/CFByteOrderUtils/Reference/reference.html">CFByteOrder</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_mutable_numeric_data.html#aba816791a6cd320251b7a54f1c504f32">byteOrder</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The byte order used to store each sample in the data buffer. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An annotated <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSMutableData_Class/index.html">NSMutableData</a> type. </p>
<p><a class="el" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type.">CPTNumericData</a> combines a mutable data buffer with information about the data (shape, data type, size, etc.). The data is assumed to be an array of one or more dimensions of a single type of numeric data. Each numeric value in the array, which can be more than one byte in size, is referred to as a "sample". The structure of this object is similar to the NumPy ndarray object. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="a9a4aacdf750422717667c63ee84e2e1a"></a><!-- doxytag: member="CPTMutableNumericData::convertToType:sampleBytes:byteOrder:" ref="a9a4aacdf750422717667c63ee84e2e1a" args="(CPTDataTypeFormat newDataType,[sampleBytes] size_t newSampleBytes,[byteOrder] CFByteOrder newByteOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) convertToType: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="_c_p_t_numeric_data_type_8h.html#ab9eb8548b99ca6ad5e1b4646f51f6746">CPTDataTypeFormat</a>)&#160;</td>
          <td class="paramname"><em>newDataType</em></td>
        </tr>
        <tr>
          <td class="paramkey">sampleBytes:</td>
          <td></td>
          <td class="paramtype">(size_t)&#160;</td>
          <td class="paramname"><em>newSampleBytes</em></td>
        </tr>
        <tr>
          <td class="paramkey">byteOrder:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/corefoundation/Reference/CFByteOrderUtils/Reference/reference.html">CFByteOrder</a>)&#160;</td>
          <td class="paramname"><em>newByteOrder</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts the current numeric data to a new data type. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newDataType</td><td>The new data type format. </td></tr>
    <tr><td class="paramname">newSampleBytes</td><td>The number of bytes used to store each sample. </td></tr>
    <tr><td class="paramname">newByteOrder</td><td>The new byte order. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A copy of the current numeric data converted to the new data type. </dd></dl>

</div>
</div>
<a class="anchor" id="af096619a65ba30e18f89d9756bfc13a7"></a><!-- doxytag: member="CPTMutableNumericData::initWithData:dataType:shape:" ref="af096619a65ba30e18f89d9756bfc13a7" args="(NSData *newData,[dataType] CPTNumericDataType newDataType,[shape] NSArray *shapeArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) initWithData: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *)&#160;</td>
          <td class="paramname"><em>newData</em></td>
        </tr>
        <tr>
          <td class="paramkey">dataType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="_c_p_t_numeric_data_type_8h.html#a0b911106a65975081b0063bf419b294b">CPTNumericDataType</a>)&#160;</td>
          <td class="paramname"><em>newDataType</em></td>
        </tr>
        <tr>
          <td class="paramkey">shape:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html">NSArray</a> *)&#160;</td>
          <td class="paramname"><em>shapeArray</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> object with the provided data. This is the designated initializer. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newData</td><td>The data buffer. </td></tr>
    <tr><td class="paramname">newDataType</td><td>The type of data stored in the buffer. </td></tr>
    <tr><td class="paramname">shapeArray</td><td>The shape of the data buffer array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance. </dd></dl>

<p>Reimplemented from <a class="el" href="interface_c_p_t_numeric_data.html#a2955411f83bb68caee9bb994153b70a8">CPTNumericData</a>.</p>

</div>
</div>
<a class="anchor" id="a11628187374953b7bb2f0f905ebf28bc"></a><!-- doxytag: member="CPTMutableNumericData::numericDataWithData:dataType:shape:" ref="a11628187374953b7bb2f0f905ebf28bc" args="(NSData *newData,[dataType] CPTNumericDataType newDataType,[shape] NSArray *shapeArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_p_t_mutable_numeric_data.html">CPTMutableNumericData</a> *) numericDataWithData: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *)&#160;</td>
          <td class="paramname"><em>newData</em></td>
        </tr>
        <tr>
          <td class="paramkey">dataType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="_c_p_t_numeric_data_type_8h.html#a0b911106a65975081b0063bf419b294b">CPTNumericDataType</a>)&#160;</td>
          <td class="paramname"><em>newDataType</em></td>
        </tr>
        <tr>
          <td class="paramkey">shape:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html">NSArray</a> *)&#160;</td>
          <td class="paramname"><em>shapeArray</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newData</td><td>The data buffer. </td></tr>
    <tr><td class="paramname">newDataType</td><td>The type of data stored in the buffer. </td></tr>
    <tr><td class="paramname">shapeArray</td><td>The shape of the data buffer array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance. </dd></dl>

<p>Reimplemented from <a class="el" href="interface_c_p_t_numeric_data.html#ab328d59298166bd594c1c194fe2fee4f">CPTNumericData</a>.</p>

</div>
</div>
<a class="anchor" id="a37ac676d6a348f8e7c12b651de1cc009"></a><!-- doxytag: member="CPTMutableNumericData::numericDataWithData:dataTypeString:shape:" ref="a37ac676d6a348f8e7c12b651de1cc009" args="(NSData *newData,[dataTypeString] NSString *newDataTypeString,[shape] NSArray *shapeArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_p_t_mutable_numeric_data.html">CPTMutableNumericData</a> *) numericDataWithData: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *)&#160;</td>
          <td class="paramname"><em>newData</em></td>
        </tr>
        <tr>
          <td class="paramkey">dataTypeString:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *)&#160;</td>
          <td class="paramname"><em>newDataTypeString</em></td>
        </tr>
        <tr>
          <td class="paramkey">shape:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html">NSArray</a> *)&#160;</td>
          <td class="paramname"><em>shapeArray</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates and returns a new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newData</td><td>The data buffer. </td></tr>
    <tr><td class="paramname">newDataTypeString</td><td>The type of data stored in the buffer. </td></tr>
    <tr><td class="paramname">shapeArray</td><td>The shape of the data buffer array. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a> instance. </dd></dl>

<p>Reimplemented from <a class="el" href="interface_c_p_t_numeric_data.html#abf3beef67fb393e4d0feba9a5d962f8e">CPTNumericData</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a0aeeb102b44e2cf316767b4f0a43cb44"></a><!-- doxytag: member="CPTMutableNumericData::shape" ref="a0aeeb102b44e2cf316767b4f0a43cb44" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- CPTMutableNumericData:<code> [read, write, copy]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The shape of the data buffer array. Set a new shape to change the size of the data buffer. </p>
<p>The shape describes the dimensions of the sample array stored in the data buffer. Each entry in the shape array represents the size of the corresponding array dimension and should be an unsigned integer encoded in an instance of <a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/Reference/Reference.html">NSNumber</a>. </p>

<p>Reimplemented from <a class="el" href="interface_c_p_t_numeric_data.html#a229be1e11221032087ca4544b67a869d">CPTNumericData</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_mutable_numeric_data_8h_source.html">CPTMutableNumericData.h</a></li>
<li>Source/CPTMutableNumericData.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_mutable_numeric_data.html">CPTMutableNumericData</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
